


<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>


<%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <link rel="stylesheet" type="text/css" href="/ecom-web/css/style.css">
        <link rel="shortcut icon" href="/ecom-web/img/favicon.ico">

        <script src="/ecom-web/js/jquery-1.4.2.min.js" type="text/javascript"></script>
        <script type="text/javascript" src="/ecom-web/js/jquery.easing.min.js"></script>
        <script type="text/javascript" src="/ecom-web/js/jquery.lavalamp.min.js"></script>
        <script type="text/javascript">
            $(".lava").lavaLamp({
                fx: "backout",
                speed: 700,
                click: function(event, menuItem) {
                    return true;
                }
            });
        </script>
    </head>

    <body>
        <div id="wrapper">
            <div id="header">


                <div id="logo">Winery<br /><span class="normal">l'art d'acheter le vin!</span></div>

                <div class="">Back office</div>

                <div id="menu">
                    <ul class="lava">
                        <li class=""><a href="/secured/" title="">Accueil</a></li>
                        <li class="<c:if test="${requestScope['javax.servlet.forward.servlet_path'] == '/secured/products'}">current</c:if>"><a href="<c:url value='/secured/products' />" title="">Produits</a></li>
                        <li class="<c:if test="${requestScope['javax.servlet.forward.servlet_path'] == '/secured/stores'}">current</c:if>"><a href="<c:url value='/secured/stores' />" title="">Boutiques</a></li>
                        <li class="<c:if test="${requestScope['javax.servlet.forward.servlet_path'] == '/secured/customers'}">current</c:if>"><a href="<c:url value='/secured/customers' />" title="">Clients</a></li>
                        <li class="<c:if test="${requestScope['javax.servlet.forward.servlet_path'] == '/secured/customers'}">current</c:if>"><a href="<c:url value='/secured/others' />" title="">Autres</a></li>
                    </ul>
                </div> <%-- Menu dans les autres pages que l'index --%>

            </div>

            <c:if test="${infoMessage != null}">
                <div id="infoMessage" class="panelInfo">
                    <div>Message : <c:out value="${infoMessage}"></c:out></div>
                    </div>
            </c:if>

            <c:if test="${errorMessage != null}">
                <div id="errorMessage" class="panelInfo">
                    <div>Erreur : <c:out value="${errorMessage}"></c:out></div>
                    </div>
            </c:if>


            <div id="content">
                <h2>Gestion des magasins</h2>

                <table>
                    <thead> 
                        <tr> 
                            <th class="sortable-text">Nom du magasin</th> 
                            <th class="sortable-text">IBAN</th> 
                            <th class="sortable-numeric">Solde du compte</th> 
                        </tr> 
                    </thead> 
                    <tbody>
                    <c:forEach var="store" items="${storeList}">
                        
                            
                        <tr>
                            <td>${store.name}</td>
                        </tr>

                        <tr>
                            <td>
                                ${store.account.iban}
                            </td>
                        </tr>

                        <tr>
                            <td>
                                ${store.account.balance}
                            </td>
                        </tr>
                        <tr>
                            <td>
                                edit
                            </td>
                        </tr>
                        <tr>
                            <td>
                                remove
                            </td>
                        </tr>

                    </c:forEach>
                        </tbody>
                </table>
            </div>
        </div>
    </body>
</html>
